package com.quanyan.place.entity;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbBizPlaceBuyContractDetailHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbBizPlaceBuyContractDetailHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdIsNull() {
            addCriterion("attract_history_id is null");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdIsNotNull() {
            addCriterion("attract_history_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdEqualTo(Integer value) {
            addCriterion("attract_history_id =", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdNotEqualTo(Integer value) {
            addCriterion("attract_history_id <>", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdGreaterThan(Integer value) {
            addCriterion("attract_history_id >", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("attract_history_id >=", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdLessThan(Integer value) {
            addCriterion("attract_history_id <", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("attract_history_id <=", value, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdIn(List<Integer> values) {
            addCriterion("attract_history_id in", values, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdNotIn(List<Integer> values) {
            addCriterion("attract_history_id not in", values, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdBetween(Integer value1, Integer value2) {
            addCriterion("attract_history_id between", value1, value2, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andAttractHistoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("attract_history_id not between", value1, value2, "attractHistoryId");
            return (Criteria) this;
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(Integer value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(Integer value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(Integer value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(Integer value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(Integer value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(Integer value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<Integer> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<Integer> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(Integer value1, Integer value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(Integer value1, Integer value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andAttractIdIsNull() {
            addCriterion("attract_id is null");
            return (Criteria) this;
        }

        public Criteria andAttractIdIsNotNull() {
            addCriterion("attract_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttractIdEqualTo(Integer value) {
            addCriterion("attract_id =", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdNotEqualTo(Integer value) {
            addCriterion("attract_id <>", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdGreaterThan(Integer value) {
            addCriterion("attract_id >", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("attract_id >=", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdLessThan(Integer value) {
            addCriterion("attract_id <", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdLessThanOrEqualTo(Integer value) {
            addCriterion("attract_id <=", value, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdIn(List<Integer> values) {
            addCriterion("attract_id in", values, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdNotIn(List<Integer> values) {
            addCriterion("attract_id not in", values, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdBetween(Integer value1, Integer value2) {
            addCriterion("attract_id between", value1, value2, "attractId");
            return (Criteria) this;
        }

        public Criteria andAttractIdNotBetween(Integer value1, Integer value2) {
            addCriterion("attract_id not between", value1, value2, "attractId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNull() {
            addCriterion("place_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNotNull() {
            addCriterion("place_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdEqualTo(Integer value) {
            addCriterion("place_id =", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotEqualTo(Integer value) {
            addCriterion("place_id <>", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThan(Integer value) {
            addCriterion("place_id >", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("place_id >=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThan(Integer value) {
            addCriterion("place_id <", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThanOrEqualTo(Integer value) {
            addCriterion("place_id <=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIn(List<Integer> values) {
            addCriterion("place_id in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotIn(List<Integer> values) {
            addCriterion("place_id not in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdBetween(Integer value1, Integer value2) {
            addCriterion("place_id between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("place_id not between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdIsNull() {
            addCriterion("place_unit_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdIsNotNull() {
            addCriterion("place_unit_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdEqualTo(Integer value) {
            addCriterion("place_unit_id =", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdNotEqualTo(Integer value) {
            addCriterion("place_unit_id <>", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdGreaterThan(Integer value) {
            addCriterion("place_unit_id >", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("place_unit_id >=", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdLessThan(Integer value) {
            addCriterion("place_unit_id <", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdLessThanOrEqualTo(Integer value) {
            addCriterion("place_unit_id <=", value, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdIn(List<Integer> values) {
            addCriterion("place_unit_id in", values, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdNotIn(List<Integer> values) {
            addCriterion("place_unit_id not in", values, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdBetween(Integer value1, Integer value2) {
            addCriterion("place_unit_id between", value1, value2, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitIdNotBetween(Integer value1, Integer value2) {
            addCriterion("place_unit_id not between", value1, value2, "placeUnitId");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceIsNull() {
            addCriterion("place_unit_price is null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceIsNotNull() {
            addCriterion("place_unit_price is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceEqualTo(BigDecimal value) {
            addCriterion("place_unit_price =", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceNotEqualTo(BigDecimal value) {
            addCriterion("place_unit_price <>", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceGreaterThan(BigDecimal value) {
            addCriterion("place_unit_price >", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("place_unit_price >=", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceLessThan(BigDecimal value) {
            addCriterion("place_unit_price <", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("place_unit_price <=", value, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceIn(List<BigDecimal> values) {
            addCriterion("place_unit_price in", values, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceNotIn(List<BigDecimal> values) {
            addCriterion("place_unit_price not in", values, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_unit_price between", value1, value2, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_unit_price not between", value1, value2, "placeUnitPrice");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresIsNull() {
            addCriterion("place_unit_expires is null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresIsNotNull() {
            addCriterion("place_unit_expires is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresEqualTo(Double value) {
            addCriterion("place_unit_expires =", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresNotEqualTo(Double value) {
            addCriterion("place_unit_expires <>", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresGreaterThan(Double value) {
            addCriterion("place_unit_expires >", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresGreaterThanOrEqualTo(Double value) {
            addCriterion("place_unit_expires >=", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresLessThan(Double value) {
            addCriterion("place_unit_expires <", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresLessThanOrEqualTo(Double value) {
            addCriterion("place_unit_expires <=", value, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresIn(List<Double> values) {
            addCriterion("place_unit_expires in", values, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresNotIn(List<Double> values) {
            addCriterion("place_unit_expires not in", values, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresBetween(Double value1, Double value2) {
            addCriterion("place_unit_expires between", value1, value2, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andPlaceUnitExpiresNotBetween(Double value1, Double value2) {
            addCriterion("place_unit_expires not between", value1, value2, "placeUnitExpires");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIsNull() {
            addCriterion("buy_type is null");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIsNotNull() {
            addCriterion("buy_type is not null");
            return (Criteria) this;
        }

        public Criteria andBuyTypeEqualTo(Integer value) {
            addCriterion("buy_type =", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotEqualTo(Integer value) {
            addCriterion("buy_type <>", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeGreaterThan(Integer value) {
            addCriterion("buy_type >", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_type >=", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeLessThan(Integer value) {
            addCriterion("buy_type <", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeLessThanOrEqualTo(Integer value) {
            addCriterion("buy_type <=", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIn(List<Integer> values) {
            addCriterion("buy_type in", values, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotIn(List<Integer> values) {
            addCriterion("buy_type not in", values, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeBetween(Integer value1, Integer value2) {
            addCriterion("buy_type between", value1, value2, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_type not between", value1, value2, "buyType");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitIsNull() {
            addCriterion("expires_unit is null");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitIsNotNull() {
            addCriterion("expires_unit is not null");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitEqualTo(String value) {
            addCriterion("expires_unit =", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitNotEqualTo(String value) {
            addCriterion("expires_unit <>", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitGreaterThan(String value) {
            addCriterion("expires_unit >", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitGreaterThanOrEqualTo(String value) {
            addCriterion("expires_unit >=", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitLessThan(String value) {
            addCriterion("expires_unit <", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitLessThanOrEqualTo(String value) {
            addCriterion("expires_unit <=", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitLike(String value) {
            addCriterion("expires_unit like", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitNotLike(String value) {
            addCriterion("expires_unit not like", value, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitIn(List<String> values) {
            addCriterion("expires_unit in", values, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitNotIn(List<String> values) {
            addCriterion("expires_unit not in", values, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitBetween(String value1, String value2) {
            addCriterion("expires_unit between", value1, value2, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andExpiresUnitNotBetween(String value1, String value2) {
            addCriterion("expires_unit not between", value1, value2, "expiresUnit");
            return (Criteria) this;
        }

        public Criteria andDateRangeIsNull() {
            addCriterion("date_range is null");
            return (Criteria) this;
        }

        public Criteria andDateRangeIsNotNull() {
            addCriterion("date_range is not null");
            return (Criteria) this;
        }

        public Criteria andDateRangeEqualTo(String value) {
            addCriterion("date_range =", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeNotEqualTo(String value) {
            addCriterion("date_range <>", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeGreaterThan(String value) {
            addCriterion("date_range >", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeGreaterThanOrEqualTo(String value) {
            addCriterion("date_range >=", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeLessThan(String value) {
            addCriterion("date_range <", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeLessThanOrEqualTo(String value) {
            addCriterion("date_range <=", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeLike(String value) {
            addCriterion("date_range like", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeNotLike(String value) {
            addCriterion("date_range not like", value, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeIn(List<String> values) {
            addCriterion("date_range in", values, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeNotIn(List<String> values) {
            addCriterion("date_range not in", values, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeBetween(String value1, String value2) {
            addCriterion("date_range between", value1, value2, "dateRange");
            return (Criteria) this;
        }

        public Criteria andDateRangeNotBetween(String value1, String value2) {
            addCriterion("date_range not between", value1, value2, "dateRange");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeIsNull() {
            addCriterion("buy_start_time is null");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeIsNotNull() {
            addCriterion("buy_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeEqualTo(Date value) {
            addCriterionForJDBCTime("buy_start_time =", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("buy_start_time <>", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("buy_start_time >", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("buy_start_time >=", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeLessThan(Date value) {
            addCriterionForJDBCTime("buy_start_time <", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("buy_start_time <=", value, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeIn(List<Date> values) {
            addCriterionForJDBCTime("buy_start_time in", values, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("buy_start_time not in", values, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("buy_start_time between", value1, value2, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyStartTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("buy_start_time not between", value1, value2, "buyStartTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeIsNull() {
            addCriterion("buy_end_time is null");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeIsNotNull() {
            addCriterion("buy_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeEqualTo(Date value) {
            addCriterionForJDBCTime("buy_end_time =", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("buy_end_time <>", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("buy_end_time >", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("buy_end_time >=", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeLessThan(Date value) {
            addCriterionForJDBCTime("buy_end_time <", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("buy_end_time <=", value, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeIn(List<Date> values) {
            addCriterionForJDBCTime("buy_end_time in", values, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("buy_end_time not in", values, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("buy_end_time between", value1, value2, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andBuyEndTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("buy_end_time not between", value1, value2, "buyEndTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNull() {
            addCriterion("dept_id is null");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNotNull() {
            addCriterion("dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeptIdEqualTo(Integer value) {
            addCriterion("dept_id =", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotEqualTo(Integer value) {
            addCriterion("dept_id <>", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThan(Integer value) {
            addCriterion("dept_id >", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dept_id >=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThan(Integer value) {
            addCriterion("dept_id <", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThanOrEqualTo(Integer value) {
            addCriterion("dept_id <=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIn(List<Integer> values) {
            addCriterion("dept_id in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotIn(List<Integer> values) {
            addCriterion("dept_id not in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdBetween(Integer value1, Integer value2) {
            addCriterion("dept_id between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dept_id not between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andFinishDateIsNull() {
            addCriterion("finish_date is null");
            return (Criteria) this;
        }

        public Criteria andFinishDateIsNotNull() {
            addCriterion("finish_date is not null");
            return (Criteria) this;
        }

        public Criteria andFinishDateEqualTo(Date value) {
            addCriterionForJDBCDate("finish_date =", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("finish_date <>", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateGreaterThan(Date value) {
            addCriterionForJDBCDate("finish_date >", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("finish_date >=", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateLessThan(Date value) {
            addCriterionForJDBCDate("finish_date <", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("finish_date <=", value, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateIn(List<Date> values) {
            addCriterionForJDBCDate("finish_date in", values, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("finish_date not in", values, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("finish_date between", value1, value2, "finishDate");
            return (Criteria) this;
        }

        public Criteria andFinishDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("finish_date not between", value1, value2, "finishDate");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Byte value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Byte value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Byte value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Byte value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Byte> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Byte> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andBuyDateIsNull() {
            addCriterion("buy_date is null");
            return (Criteria) this;
        }

        public Criteria andBuyDateIsNotNull() {
            addCriterion("buy_date is not null");
            return (Criteria) this;
        }

        public Criteria andBuyDateEqualTo(Date value) {
            addCriterionForJDBCDate("buy_date =", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("buy_date <>", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateGreaterThan(Date value) {
            addCriterionForJDBCDate("buy_date >", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("buy_date >=", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateLessThan(Date value) {
            addCriterionForJDBCDate("buy_date <", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("buy_date <=", value, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateIn(List<Date> values) {
            addCriterionForJDBCDate("buy_date in", values, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("buy_date not in", values, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("buy_date between", value1, value2, "buyDate");
            return (Criteria) this;
        }

        public Criteria andBuyDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("buy_date not between", value1, value2, "buyDate");
            return (Criteria) this;
        }

        public Criteria andIsExpireIsNull() {
            addCriterion("is_expire is null");
            return (Criteria) this;
        }

        public Criteria andIsExpireIsNotNull() {
            addCriterion("is_expire is not null");
            return (Criteria) this;
        }

        public Criteria andIsExpireEqualTo(Byte value) {
            addCriterion("is_expire =", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireNotEqualTo(Byte value) {
            addCriterion("is_expire <>", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireGreaterThan(Byte value) {
            addCriterion("is_expire >", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_expire >=", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireLessThan(Byte value) {
            addCriterion("is_expire <", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireLessThanOrEqualTo(Byte value) {
            addCriterion("is_expire <=", value, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireIn(List<Byte> values) {
            addCriterion("is_expire in", values, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireNotIn(List<Byte> values) {
            addCriterion("is_expire not in", values, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireBetween(Byte value1, Byte value2) {
            addCriterion("is_expire between", value1, value2, "isExpire");
            return (Criteria) this;
        }

        public Criteria andIsExpireNotBetween(Byte value1, Byte value2) {
            addCriterion("is_expire not between", value1, value2, "isExpire");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andExpiresIsNull() {
            addCriterion("expires is null");
            return (Criteria) this;
        }

        public Criteria andExpiresIsNotNull() {
            addCriterion("expires is not null");
            return (Criteria) this;
        }

        public Criteria andExpiresEqualTo(Integer value) {
            addCriterion("expires =", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresNotEqualTo(Integer value) {
            addCriterion("expires <>", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresGreaterThan(Integer value) {
            addCriterion("expires >", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresGreaterThanOrEqualTo(Integer value) {
            addCriterion("expires >=", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresLessThan(Integer value) {
            addCriterion("expires <", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresLessThanOrEqualTo(Integer value) {
            addCriterion("expires <=", value, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresIn(List<Integer> values) {
            addCriterion("expires in", values, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresNotIn(List<Integer> values) {
            addCriterion("expires not in", values, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresBetween(Integer value1, Integer value2) {
            addCriterion("expires between", value1, value2, "expires");
            return (Criteria) this;
        }

        public Criteria andExpiresNotBetween(Integer value1, Integer value2) {
            addCriterion("expires not between", value1, value2, "expires");
            return (Criteria) this;
        }

        public Criteria andTimePriceIsNull() {
            addCriterion("time_price is null");
            return (Criteria) this;
        }

        public Criteria andTimePriceIsNotNull() {
            addCriterion("time_price is not null");
            return (Criteria) this;
        }

        public Criteria andTimePriceEqualTo(BigDecimal value) {
            addCriterion("time_price =", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceNotEqualTo(BigDecimal value) {
            addCriterion("time_price <>", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceGreaterThan(BigDecimal value) {
            addCriterion("time_price >", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("time_price >=", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceLessThan(BigDecimal value) {
            addCriterion("time_price <", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("time_price <=", value, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceIn(List<BigDecimal> values) {
            addCriterion("time_price in", values, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceNotIn(List<BigDecimal> values) {
            addCriterion("time_price not in", values, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("time_price between", value1, value2, "timePrice");
            return (Criteria) this;
        }

        public Criteria andTimePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("time_price not between", value1, value2, "timePrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}